package com.easylinkin.linkappapi.meterbilling.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.easylinkin.linkappapi.meterbilling.entity.MeterRemedy;
import com.easylinkin.linkappapi.meterbilling.entity.ext.MeterRemedyExt;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * class info :
 *
 * @author liuqihang
 * @date 2021/8/3 16:15
 */
public interface MeterRemedyMapper extends BaseMapper<MeterRemedy> {

    IPage<MeterRemedyExt> getPage(@Param("page") Page page, @Param("meterRemedyExt") MeterRemedyExt meterRemedyExt);

    List<MeterRemedyExt> getPage(@Param("meterRemedyExt") MeterRemedyExt meterRemedyExt);

    List<MeterRemedy> getNewRemedyData(@Param("deviceCode") String deviceCode);

    List<MeterRemedy> getNewRemedyDataGroup(@Param("deviceCode") String deviceCode);
}
